package com.quanyan.pay.api.wechat.vo;

import javax.validation.constraints.NotNull;

/**
 * Created by Zheng.Ke
 * Date 2017/3/24.
 * 具体参见文档 https://mp.weixin.qq.com/wiki/4/9ac2e7b1f1d22e9e57260f6553822520.html#.E7.AC.AC.E4.BA.8C.E6.AD.A5.EF.BC.9A.E9.80.9A.E8.BF.87code.E6.8D.A2.E5.8F.96.E7.BD.91.E9.A1.B5.E6.8E.88.E6.9D.83access_token
 */
public class WxOauthReqVo {
    /** 公众号的唯一标识 */
    @NotNull
    private String appid;
    /** 公众号的appsecret */
    @NotNull
    private String secret;
    /** 换取access_token的票据 */
    @NotNull
    private String code;
    /** 授权类型 */
    private String grant_type = "authorization_code";

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getGrant_type() {
        return grant_type;
    }

    public void setGrant_type(String grant_type) {
        this.grant_type = grant_type;
    }
}
